//
//  FormLoader.h
//  iBasicRuntime
//
//  Created by Andrew Barry on 21/02/09.
//  Copyright 2009 Barry Computer Services. All rights reserved.
//

@interface FormLoader : NSObject {
	NSMutableDictionary *dataSourceLoadMap;
}
-(void)compileForm:(NSDictionary *)formContent withFile: (NSString *) filename;
-(void) compileControl: (NSDictionary *)defn withFile: (NSString *) filename;
#ifdef MACOSX
-(JSObject *)loadForm:(NSDictionary *)formContent into: (NSWindow *) wnd;
#endif
#ifdef PHONEOSX
-(JSObject *)loadForm:(NSDictionary *)formContent into: (UIView *) wnd;
#endif
-(void)startForm:(JSObject *) form;
#ifdef MACOSX
-(NSWindow *) newWindow: (NSDictionary *) defn;
-(NSWindow *) newPanel:(NSDictionary *)form;
-(NSView *)loadControl: (NSDictionary *)defn withObject: (JSObject *) root;
-(void) loadSizing: (NSView *) ctl withDefn: (NSDictionary *) defn;
#endif
#ifdef PHONEOSX
-(UIView *)loadControl: (NSDictionary *)defn withObject: (JSObject *) root;
#endif
@end
